package main

import (
	"log"
	"math/rand"
	"time"
)

//https://www.bilibili.com/video/BV1A741117tD?p=171
func init() {
	rand.Seed(time.Now().UnixNano())
	log.SetPrefix("TRACE: ")
	log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
}
func main() {

	go func() {
		for i := 91; i < 100; i++ {
			log.Println("goroutinue ", i)
			time.Sleep(1 * time.Second)
		}
	}()
	for i := 0; i < 10; i++ {
		log.Println(i)
		time.Sleep(1 * time.Second)
	}
	log.Println("main over")

}
